$OpenBSD: patch-configure_ac,v 1.7 2017/05/03 07:39:55 sthen Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -153,7 +153,7 @@ if test "$test_for_geoip" = yes;then
 fi
 
 have_readline=no
-AC_LIB_HAVE_LINKFLAGS(readline,, [
+AC_LIB_HAVE_LINKFLAGS(readline,ncurses, [
 #include <stdio.h>
 #include <readline/readline.h>], [rl_replace_line(0,0);])
   if test x$ac_cv_libreadline = xyes; then
